using System;

namespace Kopernikus.Parsing.GenericLexing
{
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
    public class LexAttribute : LexSymbolAttribute
    {
        private readonly string m_pattern;

        public LexAttribute(string symbol, string pattern) : base(symbol)
        {
            m_pattern = pattern;
        }

        public string Pattern
        {
            get { return m_pattern; }
        }
    }
}